<?php
    if($page=='home'){
        $page = $this->load->view('bodymiddle/home','',true);
    }else if($page=='contact'){
        $page = $this->load->view('bodymiddle/contact','',true);
    }else if($page=='about'){
        $page = $this->load->view('bodymiddle/about','',true);
    }else if($page=='task'){
        $page = $this->load->view('bodymiddle/task','',true);
    }else if($page=='register'){
        $page = $this->load->view('bodymiddle/register','',true);
    }else if($page=='regsucceed'){
        $page = $this->load->view('message/regsucceed','',true);
    }else if($page=='regfailed'){
        $page = $this->load->view('message/regfailed','',true);
    }else if($page=='crud'){
        $page = $this->load->view('document/output',$output,$title,true);
    }else if($page=='view_message'){
        $page = $this->load->view('document/view_message',$message,$document,$recipient,$format,true);
    }else if($page=='view_freightinvoice'){
        $page = $this->load->view('document/view_freightinvoice',$freightinvoice,true);
    }else if($page=='view_deliveryorder'){
        $page = $this->load->view('document/view_deliveryorder',$deliveryorder,true);
    }else if($page=='view_billoflading'){
        $page = $this->load->view('document/view_billoflading',$billoflading,true);
    }else if($page=='view_pib'){
        $page = $this->load->view('document/view_pib',$pib,true);
    }else if($page=='view_sppb'){
        $page = $this->load->view('document/view_sppb',$sppb,true);
    }else if($page=='view_payment'){
        $page = $this->load->view('document/view_payment',$payment,$document,true);
    }else if($page=='notification'){
        $page = $this->load->view('bodymiddle/notification',$notification,true);
    }
    // consignee
    /**
    else if($page=='consigneetask'){
        $page = $this->load->view('consigneetask/task','',true);
    }else if($page=='sendbilloflading'){
        $page = $this->load->view('consigneetask/sendbilloflading',$shippingline,true);
    }else if($page=='sendreleasedo'){
        $page = $this->load->view('consigneetask/sendbilloflading','',true);
    }else if($page=='transfersppbrequest'){
        $page = $this->load->view('consigneetask/sendbilloflading','',true);
    }else if($page=='sendrequestorder'){
        $page = $this->load->view('consigneetask/sendbilloflading','',true);
    }else if($page=='sendterminalinvoice'){
        $page = $this->load->view('consigneetask/sendbilloflading','',true);
    }else if($page=='tracedocumentconsignee'){
        $page = $this->load->view('consigneetask/tracedocument',$table,$kindbox,true);
    }else if($page=='viewbillofladingconsignee'){
        $page = $this->load->view('consigneetask/viewbilloflading',$billoflading['billoflading'],$billoflading['lineitem'],true);
    }else if($page=='viewfreightinvoiceconsignee'){
        $page = $this->load->view('consigneetask/viewfreightinvoice',$freightinvoice['freightinvoice'],$freightinvoice['lineitem'],true);
    }else if($page=='viewdeliveryorderconsignee'){
        $page = $this->load->view('consigneetask/viewdeliveryorder',$deliveryorder['deliveryorder'],$deliveryorder['lineitem'],true);
    }
    // shippingline
    else if($page=='shippinglinetask'){
        $page = $this->load->view('shippinglinetask/task','',true);
    }else if($page=='sendfreightinvoice'){
        $page = $this->load->view('shippinglinetask/sendfreightinvoice',$consignee,true);
    }else if($page=='senddeliveryorder'){
        $page = $this->load->view('shippinglinetask/senddeliveryorder',$consignee,true);
    }else if($page=='tracedocumentshippingline'){
        $page = $this->load->view('shippinglinetask/tracedocument',$table,$kindbox,true);
    }else if($page=='viewbillofladingshippingline'){
        $page = $this->load->view('shippinglinetask/viewbilloflading',$billoflading['billoflading'],$billoflading['lineitem'],true);
    }else if($page=='viewfreightinvoiceshippingline'){
        $page = $this->load->view('shippinglinetask/viewfreightinvoice',$freightinvoice['freightinvoice'],$freightinvoice['lineitem'],true);
    }else if($page=='viewdeliveryordershippingline'){
        $page = $this->load->view('shippinglinetask/viewdeliveryorder',$deliveryorder['deliveryorder'],$deliveryorder['lineitem'],true);
    }
    **/
    echo $page;
?>
